<?php

defined('_JEXEC') or die;

$app = JFactory::getApplication();
$doc = JFactory::getDocument();
$user = JFactory::getUser();
$this->language = $doc->language;
$this->direction = $doc->direction;

$params = $app->getTemplate(true)->params;

$option = $app->input->getCmd('option', '');
$view = $app->input->getCmd('view', '');
$layout = $app->input->getCmd('layout', '');
$task = $app->input->getCmd('task', '');
$itemid = $app->input->getCmd('Itemid', '');
$sitename = $app->get('sitename');

$doc->setHtml5(true);

if ($task == "edit" || $layout == 'form') {
    $fullWidth = 1;
}
else {
    $fullWidth = 0;
}

$doc->addScript($this->baseurl . '/templates/' . $this->template . '/js/1.9.1/jquery.min.js');
$doc->addScript($this->baseurl . '/templates/' . $this->template . '/js/bootstrap.min.js');
$doc->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/bootstrap.css');
$doc->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/bootstrap.min.css');
$doc->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/bootstrap-theme.min.css');
$doc->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/ie10-viewport-bug-workaround.css');
$doc->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/font-awesome.css');
$doc->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/template.css');

// disable builtin bootstrap2.x
$headData = $doc->getHeadData();
$scripts = $headData['scripts'];
unset($scripts[JUri::root(true) . '/media/jui/js/bootstrap.min.js']);
unset($scripts[JUri::root(true) . '/media/jui/js/jquery-noconflict.js']);
unset($scripts[JUri::root(true) . '/media/jui/js/jquery-migrate.min.js']);
$headData['scripts'] = $scripts;
$doc->setHeadData($headData);
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language ?>" lang="<?php echo $this->language ?>" dir="<?php echo $this->direction ?>">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
    <jdoc:include type="head" />
</head>
<body>
    <!-- header<start> -->
    <div class="header_index">
        <div class="container pre_pos">
            <div class="logo"></div>
            <div class="header_rg_link link">
                <!--<jdoc:include type="modules" name="position-4"/>-->
                <a href="/index.php/getting-start" >Documents</a>
                <?php if ($user->id): ?>
                <a href="/index.php?option=com_console&view=Overview&Itemid=127" >Console</a>
                <span id="user" class="colwhite pre_pos"><?php echo $user->username ?>
                    <div class="adminshow">
                        <ul>
                            <li><a href="/index.php/user-profile">Profile</a></li>
                            <!-- <li><a href="/index.php/reset-password">Change<br />Password</a></li> -->
                            <li><a href="/index.php?option=com_users&view=login&layout=logout&task=user.menulogout&Itemid=152">Logout</a></li>
                        </ul>
                    </div>
                </span>
                <?php endif ?>
            </div>
            <div class="header_nr">
                <h2 class="colwhite">One stop to operate your mobile application</h2>
                <?php if (!$user->id): ?>
                <div class="button_links link fontsize16"><a href="/index.php?option=com_users&view=registration&Itemid=151" class="signup text-center">Sign Up</a><a href="/index.php?option=com_users&view=login&Itemid=103" class="signin text-center">Sign In</a></div>
                <?php endif ?>
            </div>
        </div>
    </div>
    <!-- header<end>-->

    <!-- download<start> -->
    <div class="container">
        <div class="col_content">
            <div class="col-sm-6 col-md-3 col-lg-3 text-center col_list">
                <a href="/downloads/android-sdk-0.9.tgz"><span class="sp1"></span><h2 class="col6">Download<br />Android<br />SDK</h2></a>
            </div>
            <!-- <div class="col-sm-6 col-md-3 col-lg-3 text-center col_list">
                <a href="#"><span class="sp2"></span><h2 class="col6">Download<br />iOS<br />SDK</h2></a>
            </div> -->
            <div class="col-sm-6 col-md-3 col-lg-3 text-center col_list">
                <a href="/index.php/getting-start"><span class="sp3"></span><h2 class="col6">Getting<br />Start</h2></a>
            </div>
            <div class="col-sm-6 col-md-3 col-lg-3 text-center col_list">
                <a href="/index.php/getting-start"><span class="sp4"></span><h2 class="col6">Documents</h2></a>
            </div>
            <div class="clear"></div>
        </div>
    </div>
    <!-- download<end> -->

    <div class="bgf7">
        <div class="container index_pd">
            <div class="index_nr_row_pic index_pic1 fl"></div>
            <div class="index_nr_row_sm_lf col6">
                <h2 class="fontsize30"><b>Make mobile application smart</b></h2>
                <p class="fontsize16">AdGyde Analytics put an agent into mobile application and make it smart. Application not only a software but also a robot to feedback user behaviors.</p>
            </div>
        </div>
    </div>
    <div class="container index_pd">
        <div class="index_nr_row_pic index_pic2 fr"></div>
        <div class="index_nr_row_sm_rg col6">
            <h2 class="fontsize30"><b>Analyze application performance in multiple dimensions. </b></h2>
            <p class="fontsize16">Traffic is one of key performance index of application, but not all. AdGyde
Analytics provides tool to watch KPI of application. It is more easy to learn 
relationship of traffic and active users.</p>
        </div>
    </div>
    <div class="bgf7">
        <div class="container index_pd">
            <div class="index_nr_row_pic index_pic3 fl"></div>
            <div class="index_nr_row_sm_lf col6">
                <h2 class="fontsize30"><b>Turnkey solution to make application fly</b></h2>
                <p class="fontsize16">AdGyde Analytics is not only a tool, but also methodology to operate application in 
mobile Internet world.</p>
            </div>
        </div>
    </div>
    <div class="main-footer">
        <div class="container">
            <div class="col-xs-2">
                <h4 class="fontsize20 colwhite">Product</h4>
                <ul class="list-unstyled fontsize13">
                    <li><a href="#">▶ How it works</a></li>
                    <li><a href="#">▶ Surpport</a></li>
                    <li><a href="#">▶ Download SDK</a></li>
                </ul>
            </div>
            <div class="col-xs-2">
                <h4 class="fontsize20 colwhite">Developer</h4>
                <ul class="list-unstyled fontsize13">
                    <li><a href="#">▶ Getting Start</a></li>
                    <li><a href="#">▶ Documents</a></li>
                    <li>&nbsp;</li>
                </ul>
            </div>
            <div class="col-xs-2">
                <h4 class="fontsize20 colwhite">About</h4>
                <ul class="list-unstyled fontsize13">
                    <li><a href="#">▶ AdGyde</a></li>
                    <li><a href="#">▶ Join Us</a></li>
                    <li><a href="#">▶ Contact Us</a></li>
                </ul>
            </div>
            <div class="col-md-5">
                <ul class="social list-inline">
                    <!-- <li><a href="#" title="GooglePlus" target="_blank"><i class="fa fa-google-plus"></i></a></li> -->
                    <li><a href="https://www.twitter.com/adgydeS" title="Twitter" target="_blank"><i class="fa fa-twitter"></i></a></li>
                    <li><a href="https://www.facebook.com/adgyde" title="Facebook" target="_blank"><i class="fa fa-facebook"></i></a></li>
                    <li><a href="https://in.linkedin.com/in/adgyde-solutions-pvt-ltd-70012912b" title="LinkedIn" target="_blank"><i class="fa fa-linkedin"></i></a></li>
                    <!-- <li><a href="#" title="Instagram" target="_blank"><i class="fa fa-instagram"></i></a></li>
                    <li class="row-end"><a href="#" title="Pinterest" target="_blank"><i class="fa fa-pinterest"></i></a></li> -->
                </ul>
                <!-- <p class="fontsize14 colsp">Stay up to date with the latest news and offers from AdGyde</p>
                <div class="form-container">
                    <form action="#" class="signup-form navbar-form" method="post" role="form">
                        <div class="form-group">
                            <input class="form-control" id="signup-email" name="Email" placeholder="Your e-mail" required="true" type="email" value="">       
                        </div>
                        <button type="submit" class="btn btn-cta btn-cta-primary colwhite">Subscribe Now</button>
                    </form>                            
                </div> -->
            </div>
        </div>
    </div>
    <div class="copyright">
        <div class="container">Copyright @ 2015-2016 (c) AdGyde</div>
    </div>
<script type="text/javascript">
$(function(){
    $("#user").hover(function(){
        $(this).find("div").show();
    },function(){
        $(this).find("div").hide();
    })
})
</script>
</body>
</html>
